import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';

import { SetpaypwdPage } from '../setpaypwd/setpaypwd';
//代理
import { DailiPage } from '../daili/daili';
import { ChangePhonePage } from '../change-phone/change-phone';
//修改手机号
import { AccountBindPage } from '../account-bind/account-bind';
/**
 * Generated class for the AccountAndSafePage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
	selector: 'page-account-and-safe',
	templateUrl: 'account-and-safe.html',
})
export class AccountAndSafePage {

	constructor(public navCtrl: NavController, public navParams: NavParams) {
	}

	ionViewDidLoad() {
		console.log('ionViewDidLoad AccountAndSafePage');
	}
	page(num){
		switch(num){
			case 0:
				this.navCtrl.push(ChangePhonePage);
				console.log('ionViewDidLoad AccountAndSafePage'); 
				break;
			case 1:
				this.navCtrl.push(AccountBindPage);
				console.log('ionViewDidLoad AccountAndSafePage'); 
				break;
			case 2:
				this.navCtrl.push(SetpaypwdPage);
				break;
			case 3:
				this.navCtrl.push(DailiPage);
				break;
		}
	}

}
